﻿using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using LTP.Accounts.Bus;
namespace Maticsoft.Web.Accounts
{
	/// <summary>
	/// userinfo 的摘要说明。
	/// </summary>
	public partial class userinfo : System.Web.UI.Page
	{

        public string strid = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
                {
                    strid = Request.Params["id"];
                    int UsersId = (Convert.ToInt32(strid));
                    ShowInfo(UsersId);
                }
            }
        }

        private void ShowInfo(int UsersId)
        {
            ChinaSoft.BLL.BLL_tb_MidSoft_Users bll = new ChinaSoft.BLL.BLL_tb_MidSoft_Users();
            ChinaSoft.Model.Model_tb_MidSoft_Users model = bll.GetModel(UsersId);
            this.lblUserAccount.Text = model.UserAccount;
            this.lblUserName.Text = model.UserName;
            this.ImgHeader.ImageUrl = "/Uploads/"+model.UserImgFolder+"/"+model.UserImgPath;
            this.lblCompany.Text = model.Company;
            this.lblDepartMent.Text = model.DepartMent;
            this.lblSex.Text = model.Sex;
            this.lblBirthDay.Text = model.BirthDay.ToString();
            this.lblTel.Text = model.Tel;
            this.lblDuty.Text = model.Duty;
            this.lblCreateTime.Text = model.CreateTime.ToString();
            this.lblState.Text = ChinaSoft.Common.Input.SetInt(model.State)==0?"启用":"禁用";

        }


	}
}
